<template>
<el-form-item label="状态">
  <el-radio-group v-model="statusCode" @change="hChange">
    <el-radio :label="null">全部</el-radio>
    <el-radio :label="0">草稿</el-radio>
    <el-radio :label="1">待审核</el-radio>
    <el-radio :label="2">审核通过</el-radio>
    <el-radio :label="3">审核失败</el-radio>
    <el-radio :label="4">已删除</el-radio>
  </el-radio-group>
</el-form-item>
</template>
<script>
export default {
  name: 'Statusss',
  props: ['value'],
  data () {
    return {
      // 这是父传子 由 props来传入 value
      statusCode: this.value
    }
  },
  methods: {
    hChange () {
      this.$emit('input', this.statusCode)
    }
  }
}
</script>

<style>

</style>
